const path: string = "./data/testData.json";


function getCbinetByName() {
    const res = fetch(path).then(res => res.json());
    res.then(u => {
        u.count = 100;
        u.temperature = (Math.random() * 99).toFixed(2);
        u.capacity = (Math.random() * 99).toFixed(2);
    });
    return res;
}

export { getCbinetByName }